import request from '@/utils/http';

/** 获取当前用户的链接列表 */
export const getLinkLIstApi = (params: any): Promise<App.RequestResult> => {
  return request.get('link/list', {params});
};

/** 删除用户链接 */
export const deleteLinkApi = (id: string): Promise<App.RequestResult> => {
  return request.delete(`link/deleted/${id}`);
}

/** 创建用户链接 */
export const createLinkApi = (data: any): Promise<App.RequestResult> => {
  return request.post('link/created', data);
}